package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class CastToSource {

    private int beginIndex;
    private int endIndex;
    private Identifier castToSourceIdentifier;

    public CastToSource(int beginIndex, Identifier castToSourceIdentifier) {
        this.beginIndex = beginIndex;
        this.endIndex = castToSourceIdentifier.getEndIndex();
        this.castToSourceIdentifier = castToSourceIdentifier;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getCastToSourceIdentifier() {
        return castToSourceIdentifier;
    }

}
